package com.noname.lib_base_java.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * Author: Lmoumou
 * Date: 2018-12-10 17:07
 * 文件名: MsgEvent
 * 描述:
 */
public class MsgEvent {

    //修改昵称
    public static final int MODIFY_NICK = 0xffa100;
    //修改电话号码
    public static final int MODIFY_PHONE = 0xffa101;
    //引导页下一步
    public static final int GUIDE_NEXT = 0xffa102;
    //引导页提交数据
    public static final int GUIDE_SUMBIT = 0xffa103;
    //生词本数据改变
    public static final int NEW_WORDS_CHANGE = 0xffa104;
    //熟词本数据改变
    public static final int RIPE_WORDS_CHANGE = 0xffa105;
    //学习记录改变
    public static final int LEARN_HISTORY = 0xffa106;
    //更新个人信息
    public static final int UPDATE_PER = 0xffa107;
    //登陆，注册
    public static final int LOGIN_REGISTER = 0xffa108;
    //网络状态
    public static final int NET_STATUS = 0xffa109;
    //显示模块
    public static final int SHOW_MODLE = 0xffa110;
    //下载进度
    public static final int DOWANLOAD_PRO=0xffa111;
    //下载完成
    public static final int DOWANLOAD_FINISH=0xffa112;


    private int event;
    private Map<String, Object> map = new HashMap<>();

    public MsgEvent() {
    }

    public MsgEvent(int event) {
        this.event = event;
    }

    public MsgEvent put(String key, Object value) {
        map.put(key, value);
        return this;
    }

    public Object get(String key) {
        return map.get(key);
    }

    public int getEvent() {
        return event;
    }

    public void setEvent(int event) {
        this.event = event;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
}
